// store入口文件
import { createStore } from "vuex";
export default createStore({
	state:{
		barHeight: 0,
		headerHeight: 0, // 头部高度 = 状态栏高度+标题栏高度
		navigatorName: '',
		showHomePopup: false, // 首页导航
		userToken: '' // 用户信息
	},
	mutations:{
		setBarHeight(state,height){
			state.barHeight = height
		},
		setHeaderHeight(state,height){
			state.headerHeight = height
		},
		setNavigatorName(state,name){
			state.navigatorName = name
		},
		setShowHomePopup(state,name){
			state.showHomePopup = name
		},
		setUserToken(state,name){
			state.userToken = name
		},
		
	}
})
